﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.netmeeting.manage
{
    public partial class delete : ModulePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                int sessionId = (Request.QueryString["session_id"] == null) ? 0 : int.Parse(Request.QueryString["session_id"].ToString());
                new NetMeetingSessionsDao().Delete(base.Conn, sessionId);
                base.CloseConn();
                Response.Redirect("index.aspx");
            }
        } 

    }
}
